<?php
require_once 'DBConnection.php';

$name = $_GET['q'];

$connection = new Connection();



$query = "SELECT w_email, pass, salt
        FROM workertrack.worker
        WHERE w_email = '$name';"; 

$result = $connection->execute_query($query);	//result gets the info from the DB

$userData = mysql_fetch_array($result, MYSQL_ASSOC);

echo $userData['w_email'];
echo "<br>";
echo $userData['pass'];
echo "<br>";




?>